package com.andryu.base.entity

import android.os.Parcelable
import com.andryu.base.constant.CommonConstants
import com.andryu.base.observer.OpenglJavaObserver
import kotlinx.parcelize.Parcelize

@Parcelize
data class LearnListEntity(val name:String,@CommonConstants.LearnInfoType val type:Int) : Parcelable{
    var info:String = ""
    var isCpp:Boolean = true
    var intentId:Int = 0
    var graphicType:Int = 0
    var javaObserver: OpenglJavaObserver?= null

    constructor(name:String, type:Int, info:String):this(name, type){
        this.info = info
    }

    constructor(name:String, type:Int, info:String, isCpp:Boolean, javaObserver: OpenglJavaObserver):this(name, type){
        this.info = info
        this.isCpp = isCpp
        this.javaObserver = javaObserver
    }

    constructor(name:String, type:Int, info:String, isCpp:Boolean, graphicType:Int):this(name, type){
        this.info = info
        this.isCpp = isCpp
        this.graphicType = graphicType
    }

    override fun toString(): String {
        return "LearnListEntity(name='$name', type=$type, info='$info', isCpp=$isCpp, intentId=$intentId)"
    }
}
